'Usage Dim instance As NamedObjectCollection(Of T) Dim name As String Dim value As T instance.Item(name) = value value = instance.Item(name)
Parameters
- name
- The item's name.
'Usage Dim instance As NamedObjectCollection(Of T) Dim name As String Dim value As T instance.Item(name) = value value = instance.Item(name)
Exception | Description |
---|---|
System.ArgumentNullException | The assigned value is a null reference (Nothing in Visual Basic). |
System.ArgumentException | The item associated with the name cannot be found. |